/*
 * @Author: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @Date: 2024-03-17 14:25:21
 * @LastEditors: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @LastEditTime: 2024-03-18 21:03:04
 * @FilePath: \vue-rabbit\src\apis\Home.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import instance from "@/utils/http";

//获取轮播图
export const getBannerList = (params = {}) => {
  const { distributionSite = "1" } = params;
  return instance.get("/home/banner", {
    params: {
      distributionSite,
    },
  });
};

//获取新鲜好物
export const getNewList = () => {
  return instance.get("/home/new");
};

//获取人气推荐
export const getHotList = () => {
  return instance.get("/home/hot");
};

//获取商品列表
export const getShopList = () => {
  return instance.get("/home/goods");
};
